﻿﻿@model IEnumerable<verk2013_project_group12.Models.UserProfile>

<h2>PlayerList</h2>
<table id="sboard">
    <thead>
        <tr>
            <th>Username</th>
            <th>Points</th>
            <th>Email</th>
        </tr>
    </thead>
    <tbody>
            @foreach (var user in Model)
            {
                 <tr>
                    <td>@Html.ActionLink(user.UserName, "Profile", new { id = user.UserId })</td>
                    <td>@user.OverallScore</td>
                    <td>@user.Email</td>
                 </tr>
            }
    </tbody>
</table>